#ifdef __cplusplus
extern "C"{
#endif


#ifndef __XS_FIFO_H__
#define __XS_FIFO_H__


/* FIFO -- first in first out structure and macros.  */
struct fifo
{
  struct fifo *next;
  struct fifo *prev;
};

struct fifo *
xs_fifo_init(void);

struct fifo *
xs_fifo_add(struct fifo *F, struct fifo *N);

struct fifo *
xs_fifo_del(struct fifo *N);

#endif


#ifdef __cplusplus
}
#endif
